package com.example.excise06.repository;

import com.example.excise06.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface UserRepository extends JpaRepository<UserEntity,Long> {
    // 根据用户名获取用户数据
    Optional<UserEntity> findByLogin(String login);
}